package com.studyweb.service.impl;

import java.util.List;

/**
 * 导入结果异常类
 * 用于传递导入过程中的详细结果信息
 */
public class ImportResultException extends Exception {
    private final int importedCount;
    private final List<String> duplicateIds;
    private final String message;

    public ImportResultException(String message, int importedCount, List<String> duplicateIds) {
        this.message = message;
        this.importedCount = importedCount;
        this.duplicateIds = duplicateIds;
    }

    public int getImportedCount() {
        return importedCount;
    }

    public List<String> getDuplicateIds() {
        return duplicateIds;
    }

    @Override
    public String getMessage() {
        return message;
    }
}